<?php 
$section = 'user';
$link = 'user/';
?>
<div class="panel-admin">
    <h1><? echo CHtml::encode(Yii::t('user', 'User List')); ?></h1>
    <div class="form-admin">
        <?php 
            $this->widget('zii.widgets.grid.CGridView',
                        array(
                            'id'=>'user-grid',
                            'dataProvider'=>$model->search(),
                            'filter'=>$model,
                            'cssFile' => Yii::app()->request->baseUrl . '/css/backend/style-grid.css',
			                'enableSorting' => true,
			                'emptyText' => "Chưa có dữ liệu nha pà kon",
                            'columns'=>array(
                                array(
                                    'name' => 'email',
                                    'type' => 'raw',
                                    'value' => 'CHtml::link(CHtml::encode($data->email), "mailto:".CHtml::encode($data->email))',
                                ),
                                'first_name',
                                'last_name',
                                'birthday',
                                'mobile',
                                array(
                                    'name'=>'group',   
                                    'value'=>'$data->group->name',
                                ),


                                array(
                                    'class'=>'CButtonColumn',
                                ),
                            )
                        )
                    );
        ?>
    </div>
</div>